﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MP/backend.Master" AutoEventWireup="true" CodeBehind="QuocGia.aspx.cs" Inherits="TimViec.backend.QuocGia" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h4 class="alert_info">Quản lý quốc gia</h4>
    <div class="module width_full">
        <div class="p_10">
            <asp:Literal ID="lbQuocGiaId" runat="server" Visible="false"></asp:Literal>
            <table cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td valign="top" style="width:40%;">
                        <table cellpadding="0" cellspacing="10">
                            <tr>
                                <td><strong>Tên quốc gia</strong></td>
                                <td><asp:TextBox ID="txtTenQuocGia" runat="server" Width="300px"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>
                                    <asp:Button ID="btSave" runat="server" CssClass="buttonNew" Text="Lưu lại" 
                                        onclick="btSave_Click" />
                                    <asp:Button ID="btUpdate" runat="server" CssClass="buttonNew" Text="Cập nhật" 
                                        Visible="false" onclick="btUpdate_Click" />
                                    <asp:Button ID="btCancel" runat="server" CssClass="buttonCancel" Text="Hủy bỏ" 
                                        onclick="btCancel_Click" />
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td valign="top">
                        <table cellpadding="0" cellspacing="0" width="100%" class="tablesorter">
                            <thead>
                                <tr>
                                    <th>STT</th>
                                    <th>Quốc gia</th>
                                    <th>Chức năng</th>
                                </tr>
                            </thead>
                            <asp:Repeater ID="rptQuocGia" runat="server" 
                                onitemcommand="rptQuocGia_ItemCommand">
                                <ItemTemplate>
                                    <tr>
                                        <td><%#Container.ItemIndex +1 %></td>
                                        <td><%#Eval("Ten") %></td>
                                        <td>
                                            <asp:LinkButton ID="lbtEdit" runat="server" CommandName="Edit"
                                                CommandArgument='<%#Eval("QuocGiaId") %>' ToolTip="Cập nhật thông tin quốc gia" CausesValidation="false"><img src="../images/backend/icn_edit.png" /></asp:LinkButton>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
